package com.mc.moring.util

import android.text.TextUtils
//import com.appsflyer.AppsFlyerLib
import com.mc.moring.app.LogUtils
import com.mc.moring.bean.ZiLiPageUserDataBean

object PointMgr {
    var appsFlyerUID: String? = null;
    var firebaseAnalyticsResult: String? = null

    fun sendEvent(msg: String) {
        var advId: String? = ""
        try {
//            advId = AdvertisingIdClient.getAdvertisingIdInfo(BaseApplication.getInstance()).id
        } catch (e: Exception) {
            e.printStackTrace()
        }
        val params: MutableMap<String, Any?> = HashMap()
        params["customer_user_id"] = ZiLiPageUserDataBean.getInstance().customerId
        params["user_id"] = ZiLiPageUserDataBean.getInstance().userId
        params["advertising_id"] = advId
        params["appsflyer_id"] = appsFlyerUID;
        if (!TextUtils.isEmpty(msg)) {
//            AppsFlyerLib.getInstance().logEvent(BaseApplication.getInstance(), msg, params)
        }
        LogUtils.logE("MSG:$msg")
    }
}